#
CPU_GFLOPS = 8.8
GPU_GFLOPS = 300
GPU_FLAG   = USEGPU

CC        = gcc 
CPP       = g++
NVCC      = nvcc
FORT      = ftn

ARCH      = ar
ARCHFLAGS = cr
RANLIB    = ranlib

OPTS      = -std=c99 -O2 -D$(GPU_FLAG) -DCPU_GFLOPS=$(CPU_GFLOPS) -DGPU_GFLOPS=$(GPU_GFLOPS) -fopenmp
NVOPTS    = --compiler-options -fno-strict-aliasing  -arch sm_20 \
-DUNIX -O2
LDOPTS    =  

MKL_LIB_PATH    = /opt/apps/intel/11.1/mkl/lib/em64t
MKL_LIB  = $(MKL_LIB_PATH)/libmkl_solver_lp64.a \
-Wl,--start-group \
$(MKL_LIB_PATH)/libmkl_gf_lp64.a \
$(MKL_LIB_PATH)/libmkl_gnu_thread.a \
$(MKL_LIB_PATH)/libmkl_core.a \
-Wl,--end-group -lpthread

BLAS_LIB = /home1/00831/kyungjoo/lib/BLAS/1.13/libgoto2.a


LIB       = -lcudart -lcublas -lgfortran

CUDADIR   = $(TACC_CUDA_DIR)
HOMEDIR   = .

LIBDIR   += -L$(CUDADIR)./lib64/ 

INC       = -I$(CUDADIR)./include/

